package main

import (
	"fmt"
)
type Brid interface{
	Flying()
}
type Fish interface{
	Swimming()
}
type Monkey struct{
	Name string
}
type LittleMonkey struct{
	Monkey
}
func (this *Monkey) Climbinf(){
	fmt.Println(this.Name,"生来会爬树")
}
func (this *LittleMonkey) Flying (){
	fmt.Println(this.Name,"通过学习 会飞翔了")
}
func (this *LittleMonkey) Swimming(){
	fmt.Println(this.Name,"通过学习 会游泳了")
}
func main(){
	monkey:=LittleMonkey{
		Monkey{
			Name:"悟空",
		},
	}
	monkey.Climbinf()
	monkey.Flying()
	monkey.Swimming()
} 